import { defineComponent, ref } from 'vue';

export default defineComponent({
  name: 'Home',
  setup() {
    const count = ref(0)
    const load = () => {
      count.value += 2
    }
    const tableData = ref([
      {
        date: '2021-12-21',
        name: 'admin',
        state: 'Vue-router指南',
        city: '如何使用Vue-router',
        address: '50',
        zip: '正常',
      },
      {
        date: '2021-12-21',
        name: 'admin',
        state: 'VueX4.0',
        city: 'VueX使用指南',
        address: '268',
        zip: '正常',
      },
      {
        date: '2021-12-21',
        name: 'admin',
        state: 'VueX4.0',
        city: 'VueX使用指南',
        address: '274',
        zip: '正常',
      },
      {
        date: '2021-12-21',
        name: 'admin',
        state: 'VueX4.0',
        city: 'VueX使用指南',
        address: '395',
        zip: '正常',
      },
      {
        date: '2021-12-21',
        name: 'admin',
        state: 'VueX4.0',
        city: 'VueX使用指南',
        address: '422',
        zip: '正常',
      },
    ])
    return {
      count,
      load,
      tableData,
    }
  },
});
